<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include :: header"></head>
<body>
<div style="padding: 15px">
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-block">
                <input type="text" name="projectName" lay-verify="required" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">项目等级</label>
                <div class="layui-input-inline">
                    <select name="projectLevel" id="projectLevel" lay-verify="required" lay-search="">
                        <option value="T">T级</option>
                        <option value="A">A级</option>
                        <option value="B">B级</option>
                        <option value="C">C级</option>
                        <option value="D">D级</option>
                        <option value="W">W级</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">开发联系人</label>
                <div class="layui-input-inline">
                    <input type="text" name="devContact" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">实施联系人</label>
                <div class="layui-input-inline">
                    <input type="text" name="proContact" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">所在省份</label>
                <div class="layui-input-inline">
                    <input type="text" name="province" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">所在县区</label>
                <div class="layui-input-inline">
                    <input type="text" name="city" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                   <textarea type="text" name="remark" autocomplete="off"
                             class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="epointproject">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    /*<![CDATA[*/
    var sysUrl = '/venus/project/epointproject';
    layui.use('form', function () {
        var form = layui.form;
        form.on('submit(epointproject)', function (data) {
            save(sysUrl, 'add', data.field);
            return false;
        });
    });
    /*]]>*/
</script>
</body>
</html>